//package com.ankicoo.office.configuration;
//
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.boot.web.servlet.ServletRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.PropertySource;
//
///**
// * Description:
// *
// * @author : QCYANG
// * @date : 2022/2/25 11:30
// */
//
//@Configuration
//public class PageOfficeConfiguration {
//    private String poSysPath = "D:\\pageoffice";
//    /**
//     * 添加PageOffice的服务器端授权程序Servlet（必须）
//     *
//     * @return
//     */
//    @Bean
//    public ServletRegistrationBean servletRegistrationBean() {
//        com.zhuozhengsoft.pageoffice.poserver.Server poserver = new com.zhuozhengsoft.pageoffice.poserver.Server();
//        //设置PageOffice注册成功后,license.lic文件存放的目录
//        poserver.setSysPath(poSysPath);
//        ServletRegistrationBean srb = new ServletRegistrationBean(poserver);
//        srb.addUrlMappings("/poserver.zz");
//        srb.addUrlMappings("/posetup.exe");
//        srb.addUrlMappings("/pageoffice.js");
//        srb.addUrlMappings("/sealsetup.exe");
//        return srb;
//    }
//}
